import {request} from '@/store/request.js'

/**
 * 发送验证码
 */
export const sendMsg = (phoneNumber) => {
	return request({
		url: '/auth/sendMsg?phoneNumber=' + phoneNumber,
		method: 'POST'
	})
}

/**
 * 用户登录
 */
export const login = (data) => {
	return request({
		url: '/auth/login',
		method: 'POST',
		data: data
	})
}